var url = urls();
//lawyer
$.ajax({
    type: "post",
    url: url + "/api/lawyer/lawyer_list",
    data: {},
    dataType: "json",
    success: function (res) {
        lawyer_list(res);
    }
});
//团队
function lawyer_list(res) {
    var arr = res.data;
    var a = ''
    for (i in arr) {
        var position = arr[i].position || "";
        var describe_three = arr[i].describe_three || "";
        a += '<li><img src="' + url + '/upload/' + arr[i].portrait +
            '" class="lawyer_img" /><p class="lawyer_name">' + arr[i].user_name + '<span>' + position +
            '</span></p><p class="lawyer_synopsis">' + arr[i]
            .describe + '<br />' + arr[i].describe_two + '<br />' + describe_three +
            '</p><div class="lawyer_btn_box"><button type="button" class="lawyer_details_btn" id="' + arr[i].id +
            '">查看主页</button><button type="button" class="lawyer_consult_btn" onclick="show_wx();">立即咨询</button></div></li>'
    }
    $(".lawyer_list").html(a);
    $(".lawyer_details_btn").click(function () {
        window.location.href = url + '/portal/index/lawyerdetails.html?id=lawyer_' + this.id;
    })
}
// <p class="lawyer_address">' + arr[i].address + '</p>